# 循环嵌套
"""
语法:
while 条件表达式1:
    while 条件表达式2:
        循环体
"""
"""
需求:
1 2 3
1 2 3
1 2 3
"""
i = 1
while i <= 3:
    j = 1
    while j <= 3:
        print(j, end=' ')
        j += 1
    print()
    i += 1


